.chat_entry {
  display: flex;
  flex-direction: column;
  position: fixed;
  bottom: 50px;
  right: 50px;
  align-items: center;
  cursor: pointer;
}

.chat_entry .chat_avatar {
  background: white url(../images/bot-def.gif) no-repeat center;
  background-size: cover;
  width: 160px;
  height: 160px;
  border-radius: 80px;
  border: solid 3px rgb(2, 167, 240);
}

.chat_entry .chat_greeting {
  height: 50px;
  overflow: hidden;
  margin-bottom: 10px;

  p {
    background-color: rgb(2, 167, 240);
    line-height: 40px;
    border-radius: 16px 16px 0 16px;
    font-size: 14px;
    color: white;
    padding: 0 20px;
    margin-top: 10px;
  }
}

.chat_box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 990px;
  background: white;
  z-index: 999;
  box-shadow: 0 0 0 1px rgb(2, 167, 240);
  border-radius: 16px;
  background-color: rgba(208, 230, 255, 1);
  color: white;

  input[type="text"] {
    border: none;
    padding: 0 8px;
    width: 140px;
  }

  input[type="text"]:focus {
    border: none;
    outline: none;
  }
}

.chat_box .chat_header {
  background: rgb(2, 125, 180);
  height: 100px;
  display: flex;
  border-radius: 16px 16px 0 0;  
}

.chat_box .chat_box_close {
  display: inline-block;
  background: url(../images/close.png) no-repeat center;
  background-size: cover;
  width: 32px;
  height: 32px;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 34px;
}

.chat_box .chat_avatar {
  img {
    width: 160px;
    height: 160px;
    margin-top: -60px;
  }
}

.chat_box .chat_title {
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  font-size: 14px;

  i {
    font-style: normal;
    margin-bottom: 20px;
  }
}

.chat_box .chat_speaker {
    cursor: pointer;
    display: inline-block;
    background: url(../images/speaker_on.png) no-repeat left;
    background-size: cover;
    width: 24px;
    height: 24px;
}

.chat_box .chat_mute {
  background-image: url(../images/speaker_off.png) !important;
}

.chat_box .chat_history {
  height: 500px;
  overflow-y: auto;
  width: 100%;
  padding: 0 34px;
  line-height: 22px;
  margin: 20px 0;
  font-size: 14px;
}

.chat_box .time_block {
  text-align: center;
  padding: 0 0 20px;
}

.chat_box .time_block i {
  background-color: #DADADA;
  color: white;
  padding: 4px 8px;
  line-height: 30px;
  border-radius: 8px;
  font-style: normal;
  font-size: 12px;
}

.chat_box .history_block {
  margin-bottom: 20px;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.chat_box .right {
  justify-content: flex-end;
}

.chat_box .history_mine {
  display: inline-block;
  word-wrap: break-word;
  word-break: break-all;
  padding: 8px 16px;
  background: rgb(2, 167, 240);
  border-radius: 16px 16px 0 16px;
  margin-right: 10px;
  margin-left: 84px;
  text-align: left;
}

.chat_box .history_their {
  display: inline-block;
  word-wrap: break-word;
  word-break: break-all;
  padding: 8px 16px;
  background: white;
  border-radius: 16px 16px 16px 0;
  margin-left: 10px;
  margin-right: 84px;
  position: relative;
  color: black;
}

.chat_box .history_their img {
  max-width: 100%;
  height: 100px;
  cursor: pointer;
}

.chat_box .history_their ol {
  list-style: decimal;
  list-style-position: inside;
}

.chat_box .chat_hots {
  display: flex;
  justify-content: space-around;
  margin: 0 44px;
  padding: 8px 20px;
  border-radius: 16px;
  background-color: rgba(235, 244, 255, 1);
  span {
    color: #02A7F0;
    font-size: 14px;
    cursor: pointer;
  }
}

.chat_box .chat_interact {  
  margin: 8px 44px 20px;
  padding: 8px 20px;
  background: white;
  border-radius: 16px;
  display: flex;
  input {
    flex: 1;
    padding: 0;
  }
  a {
    display: inline-block;
    width: 48px;
    height: 48px;
    border-radius: 32px;
    background: url(../images/bot_send.png) no-repeat center;
    background-size: cover;
    margin-left: 8px;
  }
}

.chat_box .chat_mic {
  background-image: url(../images/mic.png) !important;
}

@keyframes fade {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.thinking-dot {
  line-height: 22px;
}

.dot {
  margin: 0 3px;
  height: 4px;
  width: 4px;
  background-color: #5E81F4;
  border-radius: 50%;
  display: inline-block;
  animation: fade 1.5s infinite ease-in-out;
}

.dot:nth-child(1) {
  animation-delay: -0.5s;
}

.dot:nth-child(2) {
  animation-delay: -0.25s;
}

.dot:nth-child(3) {
  animation-delay: 0s;
}